Ext.define('DragonApp.ux.config.Config', {

  singleton : true,

  config : {
    base :  'https://www.guangshu.top/DragonApi/index.php',				//'http://121.199.26.199/DragonApi/index.php',
    tag  :  'https://www.guangshu.top/DragonApi/static/img/tag/',		//'http://121.199.26.199/DragonApi/static/img/tag/',
    notice :  'https://www.guangshu.top/DragonApi/static/img/notice/',	//'http://121.199.26.199/DragonApi/static/img/notice/',
    app_id : 'magic_dragon',
    app_secret: 'e10adc3949ba59abbe56e057f20f883e'
  },

  constructor: function(config) {
    this.initConfig(config);
    return this;
  },

  getUrl : function (moduler) {
    return(this.getBase()+moduler);
  },

  getTagUrl : function (basename) {
    return(this.getTag()+basename);
  },

  getNoticeUrl : function (basename) {
    return(this.getNotice()+basename);
  },

  getAppId : function () {
    return( this.getApp_id() );
  },

  getAppSecret : function () {
    return( this.getApp_secret() );
  }
});